home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / matrixbullettimefighting.swf / scripts / frame_7 / PlaceObject2_252_945 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2006-05-08  |  2KB  |  106 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.Slow == "on" || _root.Slow == "on2")
  3.    {
  4.       if(this._name != "Bullet")
  5.       {
  6.          if(this._currentframe == 1)
  7.          {
  8.             if(this.S._alpha < 60)
  9.             {
  10.                this.S._alpha += 5;
  11.                this.S._visible = 1;
  12.             }
  13.             if(this.S2._alpha < 100)
  14.             {
  15.                this.S2._alpha += 5;
  16.                this.S2._visible = 1;
  17.             }
  18.             if(this.S._width < 800)
  19.             {
  20.                if(0 < Speed)
  21.                {
  22.                   this.S._width += Speed2;
  23.                }
  24.                else
  25.                {
  26.                   this.S._width -= Speed2;
  27.                }
  28.             }
  29.          }
  30.          else if(1 < this._currentframe)
  31.          {
  32.             if(20 >= this.S2._width)
  33.             {
  34.                this.removeMovieClip();
  35.             }
  36.             if(0 < this.S._width)
  37.             {
  38.                this.S._alpha -= 5;
  39.                if(0 < Speed)
  40.                {
  41.                   this.S._width -= Speed;
  42.                }
  43.                else
  44.                {
  45.                   this.S._width += Speed;
  46.                }
  47.             }
  48.             else
  49.             {
  50.                off = "on2";
  51.             }
  52.          }
  53.       }
  54.    }
  55.    else if(0 < this.S._alpha)
  56.    {
  57.       this.S._alpha -= 10;
  58.       this.S2._alpha = this.S._alpha;
  59.    }
  60.    else
  61.    {
  62.       this.S._visible = 0;
  63.       this.S2._visible = 0;
  64.       this.S._width = 0;
  65.    }
  66.    if(this._name != "Bullet" && off != "on")
  67.    {
  68.       if(0 < this._xscale)
  69.       {
  70.          Speed = 10;
  71.       }
  72.       else
  73.       {
  74.          Speed = -10;
  75.       }
  76.       Speed2 = Speed / Schweiflange;
  77.       if(_root.Slow == "on")
  78.       {
  79.          this._x += Speed / 2;
  80.       }
  81.       else if(_root.Slow == "on2")
  82.       {
  83.          this._x += Speed;
  84.       }
  85.       else
  86.       {
  87.          this._x += Speed * 2;
  88.       }
  89.    }
  90.    this.S2._xscale = this.S._xscale * 1.2;
  91.    if(off == "on")
  92.    {
  93.       tellTarget(this)
  94.       {
  95.          gotoAndStop(2);
  96.       }
  97.    }
  98.    else if(off == "on2")
  99.    {
  100.       tellTarget(this)
  101.       {
  102.          gotoAndStop(10);
  103.       }
  104.    }
  105. }
  106.